package ooday03;

public class Dog01 extends Animal01 implements Start {
    String size;

    Dog01(){

    }

    Dog01(String name,int age,String color,String size){
        super(name,age,color);
        this.size = size;
    }

    public void start(){
        System.out.println(name+"正在跑");
    }

    void eat(){
        System.out.println(name+"是一只"+size+"的小狗，它正在吃饭");
    }
}
